﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher : Person
    {
        private string title;
        private int wageno;

        public Teacher() { }

        public Teacher(string title, int wageno)
        {
            this.title = title;
            this.wageno = wageno;
        }

        public void Hello()
        {
            base.Hello();
            Console.WriteLine("职称：{0},工资号：{1}", this.title, this.wageno);
        }

        public string Title
        {
            get { return title; }
            set { this.title = value; }
        }
        public int Wageno
        {
            get { return wageno; }
            set { this.wageno = value; }
        }
    }
}

